using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class SetMaxSpeed : AIBaseNode
    {
        
        public BBParameter<float> maxSpeed = 0.2f;
        public BBParameter<bool> isSprint = false;

        protected override void OnExecute()
        {
            base.SetMaxSpeed(maxSpeed.value);
            _entity.data.isSprint = isSprint.value;
            EndAction(true);    
        }
    }
}